var projectManage = function (){

    var projectManage = this;

    this.URL = {
        list: ""
    }
     this.dataGridInit = function (){
        $("dataProjectList").datagrid({
            url:projectManage.URL.list,
            method:'POST',
            singleSelect:true,
            collapsible: true,
            pagination: true,
            remoteSort: false,
            toolbar: '#tb',
            rownumbers: true,
            fit: true,
            pageSize: 20,
            pageList: [20, 30, 50, 80, 100, 200],
            columns:[[
                {field:'id',checkbox:true},
                {field:'categoryId',hidden:true },
                {field:'category',title:'类别',width:200,align: 'left' },
                {field:'title',title:'标题',width:200,align: 'left'},

                {field:'label',title:'标签',width:200 ,align: 'left'},

                {field:'createName',title:'创建人',width:100,align: 'left' },

                {field:'readQuantity',title:'阅读量',width:100,align: 'left'}
            ]]}
        )
    }

    this.init = function(){
        projectManage.dataGridInit();
    }
}
$(function (){
    projectManage.init();
})